// ExternalRedirectView.vue
<template>
  <div>正在跳转...</div>
</template>
<script setup lang="ts">
import { onMounted } from "vue";

onMounted(() => {
  const token = localStorage.getItem("token");
  const redirectUrl = token
    ? `http://localhost:3000?token=${token}`
    : "http://localhost:3000";
  window.location.href = redirectUrl;
});
</script>
